<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<link href="common/common.css" rel="stylesheet" type="text/css">
<script src="common/common.js" type="text/javascript"></script>
<script type="text/javascript" src="common/popcalendar.js"></script>
</head>
<body>
<div id="centerlayout" style="width:800px">
<strong>【订单录入】</strong>
<html:form action="DeliveryOrderCreateAction.do">
	<div style="text-align: left;color:red"><html:errors /></div>
		<fieldset style="border: none;border-top: 1px solid #C9DCA6;"><legend></legend>
		<table class="input-table" width="100%" align="center">
			<tbody>
				<tr>
				    <td class="column">订单编号</td>
				    		<td class="value">
						<html:text property="orderNumber" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="ORDERTYPEMAP" return="orderTypedicMap" />
				    <td class="column">订单类型</td>
				    		<td class="value">
						<html:select property="orderType">
						<c:forEach items="${orderTypedicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="trueFalseMap" return="vipCustomFlagdicMap" />
				    <td class="column">VIP订单</td>
				    		<td class="value">
						<html:select property="vipCustomFlag">
						<c:forEach items="${vipCustomFlagdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">始发地</td>
				    		<td class="value">
						<html:text property="originLocation" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">目的地</td>
				    		<td class="value">
						<html:text property="destLocation" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="deliveryServiceTypeM" return="serviceTypedicMap" />
				    <td class="column">服务类型</td>
				    		<td class="value">
						<html:select property="serviceType">
						<c:forEach items="${serviceTypedicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">寄件人</td>
				    		<td class="value">
						<html:text property="sender" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">寄件人电话</td>
				    		<td class="value">
						<html:text property="senderPhone" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">取件地址</td>
				    		<td class="value">
						<html:text property="fetchAddr" size="30" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">收件人</td>
				    		<td class="value">
						<html:text property="receiver" size="20" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">收件人电话</td>
				    		<td class="value">
						<html:text property="receiverPhone" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">收件人地址</td>
				    		<td class="value">
						<html:text property="receiverAddr" size="30" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">货物品名</td>
				    		<td class="value">
						<html:text property="goodsName" size="30" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">计费重量</td>
				    		<td class="value">
						<html:text property="chargeWeight" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">体积</td>
				    		<td class="value">
						<html:text property="dimension" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">货品价值</td>
				    		<td class="value">
						<html:text property="goodsPrice" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="dOrderPayTypeMap" return="payTypedicMap" />
				    <td class="column">付款类型</td>
				    		<td class="value">
						<html:select property="payType">
						<c:forEach items="${payTypedicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				    <td class="column">运费</td>
				    		<td class="value">
						<html:text property="deliveryFee" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">保险费</td>
				    		<td class="value">
						<html:text property="insuranceFee" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
				    <td class="column">代收款</td>
				  		<td class="value" colspan="3">
						<html:text property="agencyReceiveFee" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
					</td>
					    </tr>
					    <tr>
				    <td class="column">物品描述</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="contentsDesc"/>
					</td>
					    </tr>
					    <tr>
				    <td class="column">特别操作指示</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="specialOperateNote"/>
					</td>
					    </tr>
					    <tr>
				    <td class="column">订单日期</td>
				    		<td class="value">
						<html:text property="orderDate" size="10" styleClass="textbox" errorStyleClass="textbox_err" />
						<a href onclick="popUpCalendar(this, document.forms[0].orderDate, 'yyyy-mm-dd',-1,-1,false);return false"><img src="images/calendar.gif" border="0"></a>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="substationMap" return="subStationdicMap" />
				    <td class="column">分站点</td>
				    		<td class="value">
						<html:select property="subStation">
						<c:forEach items="${subStationdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="orderStatusMap" return="orderStatusdicMap" />
				    <td class="column">状态</td>
				    		<td class="value">
						<html:select property="orderStatus">
						<c:forEach items="${orderStatusdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="createrdicMap" />
					    </tr>
					    <tr>
				    <td class="column">录入</td>
				    		<td class="value">
						<html:select property="creater">
						<c:forEach items="${createrdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="fetcherdicMap" />
				    <td class="column">取件</td>
				    		<td class="value">
						<html:select property="fetcher">
						<c:forEach items="${fetcherdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="schedulerdicMap" />
				    <td class="column">调度</td>
				    		<td class="value">
						<html:select property="scheduler">
						<c:forEach items="${schedulerdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="usersMap" return="dispatcherdicMap" />
					    </tr>
					    <tr>
				    <td class="column">派送</td>
				    		<td class="value">
						<html:select property="dispatcher">
						<c:forEach items="${dispatcherdicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="problemOrderCodeMap" return="problemCodedicMap" />
				    <td class="column">问题订单代码</td>
				  		<td class="value" colspan="3">
						<html:select property="problemCode">
						<c:forEach items="${problemCodedicMap}" var="map">
						<html:option value="${map.key}">${map.value}</html:option>
						</c:forEach>
						</html:select>
					</td>
					    </tr>
					    <tr>
				    <td class="column">备注</td>
				  		<td class="value" colspan="5">
						<html:textarea  rows="4" cols="90" property="orderNote"/>
					</td>
				</tr>
			</tbody>
		</table>
		</fieldset>
				<button class="button" type="submit" name="confirm">确 定</button>
				<input class="button" type="button" value="返回" onclick="redirect('<c:url value='DeliveryOrderMainAction.do?method=doQuery'/>')"/>
</html:form>
</div>
</body>
</html>
